package cn.tj212.xiaoyin.core.auth.service;

import cn.tj212.xiaoyin.common.page.TailPage;
import cn.tj212.xiaoyin.core.auth.domain.AuthUser;

import java.util.List;

public interface IAuthUserService {

    public AuthUser getByUsername(String username);

    public AuthUser getById(Long userId);

    public AuthUser createSelectivity(AuthUser entity);

    /**
     * 根据username和password获取
     * @param tmpAuthUser
     * @return
     */
    public AuthUser getByUsernameAndPassword(AuthUser authUser);

    /**
     * 获取首页推荐5个讲师
     * @return
     */
    public List<AuthUser> queryRecomd();

    /**
     * 分页获取
     * @param queryEntity
     * @param page
     * @return
     */
    public TailPage<AuthUser> queryPage(AuthUser queryEntity,TailPage<AuthUser> page);

    public void update(AuthUser entity);

    public void updateSelectivity(AuthUser entity);

    public void delete(AuthUser entity);

    public void deleteLogic(AuthUser entity);
}
